import React from 'react'
import { Switch, Route, Redirect } from 'react-router-dom'

import NotFound from './notFound';
import Login from './login';
import Analysis from './analysis';
import Upload from './upload';

export default function () { 
    return (
        <Switch>
            <Route exact path="/" component={Login} />
            <Route path="/error" component={NotFound} />
            <Route path="/analysis" component={Analysis} />
            <Route path="/upload" component={Upload} />
        </Switch>
    )
 }